package day08.zuozuo;
/*4.有如下字符串:"12ab","java","cd","Server78"
        遍历这些字符串，如果字符串没有包含数字的，就将字符串中的小写字母转成大写字母并打印字符串*/

public class zuo013 {
    public static void main(String[] args) {
        String jkl[]={"12ab","java","cd","Server78"};

        for (int i = 0; i < jkl.length; i++) {
            char[] chars=jkl[i].toCharArray();
            boolean ok=true;
            for (int j = 0; j < chars.length; j++) {
                char c=chars[j];
                if(c>='0'&&c<='9'){
                    ok=false;
                    break;
                }
            }
            if(ok){
                jkl[i]=jkl[i].toUpperCase();
            }


        }
        for (int i = 0; i < jkl.length; i++) {
            System.out.println(jkl[i]);

        }

    }
}
